﻿package basstalite.events {	import flash.events.Event;	public class ModelEvent extends Event {				private var _progress:Number;				public static const PROGRESS:String = "ModelLoadingProgress";				public static const ALL_COMPLETE:String = "AllLoadingsCompleted";				public static const XML_COMPLETE:String = "XMLLoadingsCompleted";		public function ModelEvent(type:String, progressPercent:Number = 0, bubbles:Boolean=false, cancelable:Boolean=false) {			_progress = Math.round(progressPercent);			super(type, bubbles, cancelable);		}				public function get progressPercent():Number{			return _progress;		}				override public function clone():Event {			return new ModelEvent(type, progressPercent, bubbles, cancelable);		}		override public function toString():String {			return formatToString("ModelEvent", "type", "percent", "bubbles", "cancelable", "eventPhase");		}	}//end}